﻿<UserControl 
    xmlns:infrastructure="clr-namespace:Acme.MVVM.Scenarios.Infrastructure"
    xmlns:prism="http://www.codeplex.com/prism"
    xmlns:views="clr-namespace:Acme.MVVM.Scenarios.Views"
    x:Class="Acme.MVVM.Scenarios.Views.EventAggregatorView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Margin="6" Text="Demonstrates the Event Aggregator publisher-subscriber." FontSize="24" TextWrapping="Wrap" Grid.ColumnSpan="2" />

        <ContentControl 
            Grid.Row="1" 
            prism:RegionManager.RegionName="{x:Static infrastructure:Constants.PubContentRegionName}" />

        <ContentControl 
            Grid.Row="1" Grid.Column="1" 
            prism:RegionManager.RegionName="{x:Static infrastructure:Constants.SubContentRegionName}" />

    </Grid>
</UserControl>
